home *** CD-ROM | disk | FTP | other *** search
/ 500 MB Nyheder Direkte fra Internet 9 / 500 MB nyheder direkte fra internet CD 9.iso / start / zipped / dos / novell / sdk.exe / SDK / INCLUDE / NWCALDEF.H < prev    next >
C/C++ Source or Header  |  1995-07-25  |  4KB  |  158 lines

  1. /******************************************************************************
  2.  
  3.   $Workfile:   nwcaldef.h  $
  4.   $Revision:   1.28  $
  5.   $Modtime::   24 Jul 1995 16:12:52                        $
  6.   $Copyright:
  7.  
  8.   Copyright (c) 1989-1995 Novell, Inc.  All Rights Reserved.                      
  9.  
  10.   THIS WORK IS  SUBJECT  TO  U.S.  AND  INTERNATIONAL  COPYRIGHT  LAWS  AND
  11.   TREATIES.   NO  PART  OF  THIS  WORK MAY BE  USED,  PRACTICED,  PERFORMED
  12.   COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED,  ABRIDGED, CONDENSED,
  13.   EXPANDED,  COLLECTED,  COMPILED,  LINKED,  RECAST, TRANSFORMED OR ADAPTED
  14.   WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE OR EXPLOITATION
  15.   OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO
  16.   CRIMINAL AND CIVIL LIABILITY.$
  17.  
  18.  *****************************************************************************/
  19.  
  20. #if ! defined ( NWCALDEF_H )
  21. #define NWCALDEF_H
  22.  
  23. #if ! defined ( NTYPES_H )
  24. #include "ntypes.h"
  25. #endif
  26.  
  27. #ifndef NWPASCAL
  28. #define NWPASCAL N_PASCAL
  29. #endif
  30.  
  31. #ifndef NWFAR
  32. #define NWFAR N_FAR
  33. #endif
  34.  
  35. #define NWCONN_HANDLE   nuint
  36. #define pNWCONN_HANDLE  pnuint  
  37. #define NWCONN_NUM      nuint16
  38. #define NWCCODE         nuint
  39. #define NWDIR_HANDLE    nuint8
  40.  
  41. #if defined (N_PLAT_MSW) && defined (N_ARCH_32)
  42. #define NWFILE_HANDLE     nptr
  43. #else
  44. #define NWFILE_HANDLE     nuint
  45. #endif
  46.  
  47.  
  48. #if !defined(__WINDOWS_H) &&         \
  49.     !defined(_INC_WINDOWS) &&        \
  50.     !defined(__WIN386_INCLUDED__)
  51.  
  52. #if !defined(BYTE) && !defined(OS2DEF_INCLUDED)
  53. #define BYTE nuint8
  54. #endif
  55.  
  56. #ifndef WORD
  57. #define WORD nuint16
  58. #endif
  59.  
  60. #ifndef DWORD
  61. #define DWORD nuint32
  62. #endif
  63.  
  64. #ifndef LONG
  65. #define LONG nuint32
  66. #endif
  67.  
  68. #endif
  69.  
  70. #ifndef FA_READ_ONLY
  71. #define FA_NORMAL         0x00
  72. #define FA_READ_ONLY      0x01
  73. #define FA_HIDDEN         0x02
  74. #define FA_SYSTEM         0x04
  75. #define FA_EXECUTE_ONLY   0x08
  76. #define FA_DIRECTORY      0x10
  77. #define FA_NEEDS_ARCHIVED 0x20
  78. #define FA_SHAREABLE      0x80
  79.  
  80. /* Extended file attributes */
  81. #define FA_TRANSACTIONAL  0x10
  82. #define FA_INDEXED        0x20
  83. #define FA_READ_AUDIT     0x40
  84. #define FA_WRITE_AUDIT    0x80
  85. #endif
  86.  
  87. /* the following is a the correct attribute mask list */
  88. /* The difference between these and the FA_ constants above is that these
  89.    are in the correct positions. The last four attributes above are 8 bits
  90.    off. (They need to be shifted 8 bits to the left.) */
  91. #ifndef A_NORMAL
  92. #define A_NORMAL             0x00000000L
  93. #define A_READ_ONLY          0x00000001L
  94. #define A_HIDDEN             0x00000002L
  95. #define A_SYSTEM             0x00000004L
  96. #define A_EXECUTE_ONLY       0x00000008L
  97. #define A_DIRECTORY          0x00000010L
  98. #define A_NEEDS_ARCHIVED     0x00000020L
  99. #define A_SHAREABLE          0x00000080L
  100. #define A_DONT_SUBALLOCATE   0x00000800L 
  101. #define A_TRANSACTIONAL      0x00001000L
  102. #define A_INDEXED            0x00002000L /* not in the NCP book */
  103. #define A_READ_AUDIT         0x00004000L
  104. #define A_WRITE_AUDIT        0x00008000L
  105. #define A_IMMEDIATE_PURGE    0x00010000L
  106. #define A_RENAME_INHIBIT     0x00020000L
  107. #define A_DELETE_INHIBIT     0x00040000L
  108. #define A_COPY_INHIBIT       0x00080000L
  109. #define A_FILE_MIGRATED      0x00400000L
  110. #define A_DONT_MIGRATE       0x00800000L
  111. #define A_IMMEDIATE_COMPRESS 0x02000000L
  112. #define A_FILE_COMPRESSED    0x04000000L
  113. #define A_DONT_COMPRESS      0x08000000L
  114. #define A_CANT_COMPRESS      0x20000000L
  115. #endif
  116.  
  117. /* access rights attributes */
  118. #ifndef AR_READ_ONLY
  119. #define AR_READ           0x0001
  120. #define AR_WRITE          0x0002
  121. #define AR_READ_ONLY      0x0001
  122. #define AR_WRITE_ONLY     0x0002
  123. #define AR_DENY_READ      0x0004
  124. #define AR_DENY_WRITE     0x0008
  125. #define AR_COMPATIBILITY  0x0010
  126. #define AR_WRITE_THROUGH  0x0040
  127. #define AR_OPEN_COMPRESSED 0x0100
  128. #endif
  129.  
  130. /* search attributes */
  131. #ifndef SA_HIDDEN
  132. #define SA_NORMAL         0x0000
  133. #define SA_HIDDEN         0x0002
  134. #define SA_SYSTEM         0x0004
  135. #define SA_SUBDIR_ONLY    0x0010
  136. #define SA_SUBDIR_FILES   0x8000
  137. #define SA_ALL            0x8006
  138. #endif
  139.  
  140. #define MAX_VOL_LEN 17        /* this includes a byte for null  */
  141.  
  142.  
  143. #ifndef USE_NW_WILD_MATCH
  144. #define USE_NW_WILD_MATCH   0
  145. #endif
  146.  
  147. #ifndef USE_DOS_WILD_MATCH
  148. #define USE_DOS_WILD_MATCH  1
  149. #endif
  150.  
  151. /* Scope specifiers */
  152. #define GLOBAL       0
  153. #define PRIVATE      1
  154. #define MY_SESSION   2
  155. #define ALL_SESSIONS 3
  156.  
  157. #endif
  158.